//
//  listModel.m
//  ILiangCang
//
//  Created by ZX on 16-4-16.
//  Copyright (c) 2016年 CRQ. All rights reserved.
//

#import "listModel.h"

@implementation listModel


+(id)listModelWithDictionary:(NSDictionary *)listModelDic
{
    return [[self alloc]initWithDictionary:listModelDic];
}
-(id)initWithDictionary:(NSDictionary *)dic{
    self = [super init];
    if (self)
    {
        
        _picURL = [NSURL URLWithString:dic[@"pic_url"]];
        _contentType = [dic[@"content_type"] integerValue];
        _homeId = [dic[@"home_id"] integerValue];
        _topicName = dic[@"topic_name"];
        _topicURL =[NSURL URLWithString: dic[@"topic_url"]];
        
        
    }
    return self;
    
    
}
@end
